package com.touchalachs.core;

import java.util.Locale;

public class TimeUtil {

	public static int getTime() {
		return (int)(System.currentTimeMillis()/1000);
	}

	/**
	 * @return hhh:mm:ss
	 */
	public static String secToTime(int sec) {
		int s = sec%60;
		int m = (sec/60)%60;
		int h = sec/3600;
		return String.format(Locale.getDefault(), "%d:%02d:%02d", h,m,s);
	}

}
